import { Selector } from '@pxxtech/mobile';

const ItemList = [
  {
    label: '选项一',
    value: '1',
  },
  {
    label: '选项二',
    value: '2',
    disabled: true,
  },
  {
    label: '选项三',
    value: '3',
  },
  {
    label: '选项四',
    value: '4',
  },
];

const Basic = () => {
  return (
    <div>
      <Selector options={ItemList} defaultValue={['1']} />
      <Selector
        columns={2}
        options={ItemList}
        defaultValue={['2', '3']}
        multiple={true}
        onChange={(arr) => console.log(arr)}
      />
    </div>
  );
};

export default Basic;
